
from selenium.webdriver.common.by import By
from base.Base import Base

class Page(Base):
    search = (By.ID,'chat-textarea')
    def send_search(self):
        self.send_keys(self.search,'我喜欢软件测试')


    search_botton = (By.ID,'chat-submit-button')

    def get_search_text(self):
        return self.get_text(self.search_botton)

    def click_search_botton(self):
        self.click(self.search_botton)

    one_text = (By.ID,'content_left')
    def get_one_text(self):
        return self.get_text(self.one_text)

    tow = (By.XPATH,'//*[@id="page"]/div/a[2]/span')
    def goto_tow(self):
        self.click(self.tow)

    tow_text = (By.ID,'content_left')
    def get_tow_text(self):
        return self.get_text(self.tow_text)



